package com.chixing.day03_oop;

public class CompanyTest {
    public static void main(String[] args) {
        //实例化对象
        Company company1 =new Company();
        /*company1.companyId=9001;
        company1.companyName="中国花为";
        company1.companyAddress="日本";
        company1.companyType="罕见企业";
        company1.companyTelno=1145141919;

         */

        company1.setCompanyId(110);
        company1.setCompanyName("中国花为");
        company1.setCompanyAddress("日本");
        company1.setCompanyType("罕见企业");
        company1.setCompanyTelno(114514) ;

        company1.publishJob();
        company1.getResume();


        Company company2 =new Company();
        /*company2.companyId=111;
        company2.companyName="尼谷丁真";
        company2.companyAddress="理塘";
        company2.companyType="国有企业";
        company2.companyTelno=110;

         */
        company2.setCompanyId(120);
        company2.setCompanyName("中国花为");
        company2.setCompanyAddress("日本");
        company2.setCompanyType("罕见企业");
        company2.setCompanyTelno(1145141919) ;


        company2.publishJob();
        company2.getResume();


        Job job1=new Job();
        job1.jobId=111;
        job1.jobName="技师";
        job1.minWage=10000;
        job1.maxWage=20000;
        job1.acaRequire="无要求";
        job1.jobAddress="东莞";
        job1.company=company1;

        Job job2=new Job();
        job2.jobId=122;
        job2.jobName="电子烟销售";
        job2.minWage=1100;
        job2.maxWage=3000;
        job2.acaRequire="文盲";
        job2.jobAddress="理塘";
        job2.company=company2;


        int x=10;
        int y=20;
        add(x,y); //实际参数 （实参 arguments /args）



    }
    public static int add(int x,int y){//形式参数（形参parameter/param）[局部变量，临时变量 local variable]
        int sum =x+y;
        return sum;
    }
}
